package org.chnxi.study.design.builder;

/**
 * 负责Product创建的具体过程，这里表示A -> B -> C -> D
 */
public class Director {

    public Product build(Builder builder){
        builder.buildA("buildA");
        builder.buildB("buildB");
        builder.buildC("buildC");
        builder.buildD("buildD");
        return builder.getProduct();
    }

}
